from langchain_ollama import ChatOllama

chat = ChatOllama(base_url="http://10.0.2.114:11434", model="qwen3:8b", temperature=1.0)

for chunk in chat.stream("给我讲个20个字以内的冷笑话"):
    print(chunk.content, end="", flush=True)
